Short Message Processing Method and Apparatus, and Electronic Device

ABSTRACT

A short message service (SMS) message processing method and apparatus, and an electronic device. The electronic device is configured to receive a SMS message and set identification information of the SMS message to correspond to determining a processing manner for the received SMS message. A first processing manner is either deleting the received SMS message or saving the received SMS message in a junk SMS message storage area. A second processing manner is saving the received SMS message in a conventional SMS message storage area, and displaying both a content of the received SMS message and a delete option when a view operation on the received SMS message is detected. A third processing manner is saving the received SMS message in the conventional SMS message storage area. A fourth processing manner is saving the received SMS message in a confidential SMS message storage area.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/897,819, filed on Jun. 10, 2020, which is a continuation of U.S.patent application Ser. No. 16/204,710, filed on Nov. 29, 2018, now U.S.Pat. No. 10,708,726, which is a continuation of U.S. patent applicationSer. No. 15/735,109, filed on Dec. 8, 2017, now U.S. Pat. No.10,165,419, which is a national stage of International Application No.PCT/CN2015/081114, filed on Jun. 10, 2015. All of the aforementionedapplications are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present disclosure relates to the field of information technologies,and in particular, to a short message service (SMS) message processingmethod and apparatus, and an electronic device.

BACKGROUND

In modern life, as popularity of mobile terminals increases, a growingquantity of users exchange information by using the mobile terminals. Byvirtue of quickness, convenience, and the like, an SMS message isgradually favored by users. However, many criminals use SMS messages tosend a large amount of junk information such as advertisements and falseinformation to the user. Because the junk information brings a greatdeal of trouble to user's life, how to process the SMS message to builda good communication environment becomes an urgent problem to be solved.

Currently, during SMS message processing, received SMS messages arefiltered based on an installed junk SMS message interceptionapplication. When a received SMS message is determined as a junk SMSmessage, the junk SMS message is stored in a junk SMS message storagearea.

Because the junk SMS message obtained by means of filtering is stillstored in a mobile terminal, storage space of the mobile terminal isoccupied. Consequently, performance of the mobile terminal is degraded.

SUMMARY

To resolve a problem in a related technology, embodiments of the presentdisclosure provide an SMS message processing method and apparatus, andan electronic device. as follows.

According to a first aspect, an SMS message processing method isprovided, where the method includes receiving a new SMS message;extracting identification information of the SMS message, where theidentification information is information about a number used to sendthe SMS message and/or a content keyword; determining a processingmanner corresponding to the identification information from a prestoredcorrespondence between an identification information group and aprocessing manner according to the identification information, whereeach identification information group includes at least one piece ofidentification information; and processing the SMS message according tothe determined processing manner.

With reference to the first aspect, in a first possible implementationof the first aspect, before the determining a processing mannercorresponding to the identification information from a prestoredcorrespondence between an identification information group and aprocessing manner according to the identification information, themethod further includes providing an SMS message setting page, wheremultiple processing manners are displayed on the SMS message settingpage; setting, according to a setting operation in the SMS messagesetting interface, a processing manner corresponding to each piece ofidentification information; grouping identification informationcorresponding to a same processing manner based on the processing mannercorresponding to each piece of identification information, to form anidentification information group; and storing the correspondence betweenan identification information group and a processing manner.

With reference to the first aspect or the first possible implementationof the first aspect, in a second possible implementation of the firstaspect, the processing manner includes a first processing manner, asecond processing manner, a third processing manner, and a fourthprocessing manner, where the first processing manner is corresponding toa first number group and/or a first keyword group, and the firstprocessing manner is to delete a received SMS message or save a receivedSMS message in a junk SMS message storage area; the second processingmanner is corresponding to a second number group and/or a second keywordgroup, and the second processing manner is to save a received SMSmessage in a conventional SMS message storage area and provide aninformation processing dialog box when a view operation on the receivedSMS message is detected, where a delete option and a save option aredisplayed in the information processing dialog box; the third processingmanner is corresponding to a third number group and/or a third keywordgroup, and the third processing manner is to save a received SMS messagein the conventional SMS message storage area; and the fourth processingmanner is corresponding to a fourth number group and/or a fourth keywordgroup, and the fourth processing manner is to save a received SMSmessage in a confidential SMS message storage area.

With reference to the second possible implementation of the firstaspect, in a third possible implementation of the first aspect, theprocessing the SMS message according to the determined processing mannerincludes if the determined processing manner is the first processingmanner, deleting the SMS message or saving the SMS message in the junkSMS message storage area according to the first processing manner; ifthe determined processing manner is the second processing manner,according to the second processing manner, saving the SMS message in theconventional SMS message storage area, and when a view operation on theSMS message is detected, providing the information processing dialogbox, and processing the SMS message according to a selected operation inthe information processing dialog box; if the determined processingmanner is the third processing manner, saving the SMS message in theconventional SMS message storage area according to the third processingmanner; or if the determined processing manner is the fourth processingmanner, saving the SMS message in the confidential SMS message storagearea according to the fourth processing manner.

With reference to the third possible implementation of the first aspect,in a fourth possible implementation of the first aspect, the processingthe SMS message according to a selected operation in the informationprocessing dialog box includes if it is detected that the delete optionin the information processing dialog box is selected, deleting the SMSmessage or saving the SMS message in the junk SMS message storage area;or if it is detected that the save option in the information processingdialog box is selected, saving the SMS message, and when a viewoperation on the SMS message is detected subsequently, skippingproviding the information processing dialog box again.

According to a second aspect, an SMS message processing apparatus isprovided, where the apparatus includes a receiving module configured toreceive a new SMS message; an identification information extractionmodule configured to extract identification information of the SMSmessage, where the identification information is information about anumber used to send the SMS message and/or a content keyword; aprocessing manner determining module configured to determine aprocessing manner corresponding to the identification information from aprestored correspondence between an identification information group anda processing manner according to the identification information, whereeach identification information group includes at least one piece ofidentification information; and an SMS message processing moduleconfigured to process the SMS message according to the determinedprocessing manner.

With reference to the second aspect, in a first possible implementationof the second aspect, the apparatus further includes a setting pageproviding module configured to provide an SMS message setting page,where multiple processing manners are displayed on the SMS messagesetting page; a setting module configured to set, according to a settingoperation in the SMS message setting interface, a processing mannercorresponding to each piece of identification information; anidentification information group forming module configured to groupidentification information corresponding to a same processing mannerbased on the processing manner corresponding to each piece ofidentification information, to form an identification information group;and a storage module configured to store the correspondence between anidentification information group and a processing manner.

With reference to the second aspect or the first possible implementationof the second aspect, in a second possible implementation of the secondaspect, the processing manner includes a first processing manner, asecond processing manner, a third processing manner, and a fourthprocessing manner, where the first processing manner is corresponding toa first number group and/or a first keyword group, and the firstprocessing manner is to delete a received SMS message or save a receivedSMS message in a junk SMS message storage area; the second processingmanner is corresponding to a second number group and/or a second keywordgroup, and the second processing manner is to save a received SMSmessage in a conventional SMS message storage area and provide aninformation processing dialog box when a view operation on the receivedSMS message is detected, where a delete option and a save option aredisplayed in the information processing dialog box; the third processingmanner is corresponding to a third number group and/or a third keywordgroup, and the third processing manner is to save a received SMS messagein the conventional SMS message storage area; and the fourth processingmanner is corresponding to a fourth number group and/or a fourth keywordgroup, and the fourth processing manner is to save a received SMSmessage in a confidential SMS message storage area.

With reference to the second possible implementation of the secondaspect, in a third possible implementation of the second aspect, the SMSmessage processing module is configured to when the determinedprocessing manner is the first processing manner, delete the SMS messageor save the SMS message in the junk SMS message storage area accordingto the first processing manner; the SMS message processing module isconfigured to when the determined processing manner is the secondprocessing manner, according to the second processing manner, save theSMS message in the conventional SMS message storage area, and when aview operation on the SMS message is detected, provide the informationprocessing dialog box, and process the SMS message according to aselected operation in the information processing dialog box; the SMSmessage processing module is configured to when the determinedprocessing manner is the third processing manner, save the SMS messagein the conventional SMS message storage area according to the thirdprocessing manner; or the SMS message processing module is configured towhen the determined processing manner is the fourth processing manner,save the SMS message in the confidential SMS message storage areaaccording to the fourth processing manner.

With reference to the third possible implementation of the secondaspect, in a fourth possible implementation of the second aspect, theSMS message processing module is configured to when it is detected thatthe delete option in the information processing dialog box is selected,delete the SMS message or save the SMS message in the junk SMS messagestorage area; or the SMS message processing module is configured to whenit is detected that the save option in the information processing dialogbox is selected, save the SMS message, and when a view operation on theSMS message is detected subsequently, skip providing the informationprocessing dialog box again.

According to a third aspect, an electronic device is provided, where theelectronic device includes an input unit, a processor unit, an outputunit, a communications unit, a storage unit, a peripheral interface, anda power supply, where the storage unit is configured to store programcode; the communications unit is configured to receive a new SMSmessage; and the processor unit invokes, by using a bus, the programcode stored in the storage unit in order to perform the followingoperations, extracting identification information of the SMS message,where the identification information is information about a number usedto send the SMS message and/or a content keyword; determining aprocessing manner corresponding to the identification information from aprestored correspondence between an identification information group anda processing manner according to the identification information, whereeach identification information group includes at least one piece ofidentification information; and processing the SMS message according tothe determined processing manner.

With reference to the third aspect, in a first possible implementationof the third aspect, before the operation of determining a processingmanner corresponding to the identification information from a prestoredcorrespondence between an identification information group and aprocessing manner according to the identification information, theprocessor unit is further configured to perform the followingoperations, providing an SMS message setting page, where multipleprocessing manners are displayed on the SMS message setting page;setting, according to a setting operation in the SMS message settinginterface, a processing manner corresponding to each piece ofidentification information; grouping identification informationcorresponding to a same processing manner based on the processing mannercorresponding to each piece of identification information, to form anidentification information group; and storing the correspondence betweenan identification information group and a processing manner.

With reference to the third aspect or the first possible implementationof the third aspect, in a second possible implementation of the thirdaspect, the processing manner includes a first processing manner, asecond processing manner, a third processing manner, and a fourthprocessing manner, where the first processing manner is corresponding toa first number group and/or a first keyword group, and the firstprocessing manner is to delete a received SMS message or save a receivedSMS message in a junk SMS message storage area; the second processingmanner is corresponding to a second number group and/or a second keywordgroup, and the second processing manner is to save a received SMSmessage in a conventional SMS message storage area and provide aninformation processing dialog box when a view operation on the receivedSMS message is detected, where a delete option and a save option aredisplayed in the information processing dialog box; the third processingmanner is corresponding to a third number group and/or a third keywordgroup, and the third processing manner is to save a received SMS messagein the conventional SMS message storage area; and the fourth processingmanner is corresponding to a fourth number group and/or a fourth keywordgroup, and the fourth processing manner is to save a received SMSmessage in a confidential SMS message storage area.

With reference to the second possible implementation of the thirdaspect, in a third possible implementation of the third aspect, theoperation in which the processor unit processes the SMS messageaccording to the determined processing manner includes when thedetermined processing manner is the first processing manner, deletingthe SMS message or saving the SMS message in the junk SMS messagestorage area according to the first processing manner; when thedetermined processing manner is the second processing manner, accordingto the second processing manner, saving the SMS message in theconventional SMS message storage area, and when a view operation on theSMS message is detected, providing the information processing dialogbox, and processing the SMS message according to a selected operation inthe information processing dialog box; when the determined processingmanner is the third processing manner, saving the SMS message in theconventional SMS message storage area according to the third processingmanner; or when the determined processing manner is the fourthprocessing manner, saving the SMS message in the confidential SMSmessage storage area according to the fourth processing manner.

With reference to the third possible implementation of the third aspect,in a fourth possible implementation of the third aspect, the operationin which the processor unit processes the SMS message according to aselected operation in the information processing dialog box includeswhen it is detected that the delete option in the information processingdialog box is selected, deleting the SMS message or saving the SMSmessage in the junk SMS message storage area; or when it is detectedthat the save option in the information processing dialog box isselected, saving the SMS message, and when a view operation on the SMSmessage is detected subsequently, skipping providing the informationprocessing dialog box again.

When the SMS message is received, the identification information of theSMS message is extracted such that SMS messages that have differentidentification information are processed in different processingmanners, thereby optimizing an SMS message processing manner, preventinga junk SMS message from occupying storage space, and improvingperformance of a mobile terminal.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the following briefly describes theaccompanying drawings for describing the embodiments. The accompanyingdrawings in the following description show merely some embodiments ofthe present disclosure, and a person of ordinary skill in the art maystill derive other drawings from these accompanying drawings withoutcreative efforts.

FIG. 1 is a flowchart of an SMS message processing method according toan embodiment of the present disclosure;

FIG. 2 is a flowchart of an SMS message processing method according toanother embodiment of the present disclosure;

FIG. 3 is a schematic diagram of a terminal display screen according toanother embodiment of the present disclosure;

FIG. 4 is schematic structural diagram of an SMS message processingapparatus according to another embodiment of the present disclosure;

FIG. 5 is schematic structural diagram of an SMS message processingapparatus according to another embodiment of the present disclosure; and

FIG. 6 is a schematic structural diagram of an electronic deviceaccording to another embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thepresent disclosure clearer, the following further describes theembodiments of the present disclosure in detail with reference to theaccompanying drawings.

With development of information technologies, information security hasbecome the user's upmost concern currently. Although some junk SMSmessages may be intercepted by using a junk SMS message interceptionapplication installed on a mobile terminal, there are still some SMSmessages sent to the mobile terminal of the user in all sorts of ways.These junk SMS messages are stored in the mobile terminal, or stored ina conventional SMS message storage area together with an SMS messagesent by a close friend of the user, or stored in a junk SMS messagestorage area alone. Because these junk SMS messages occupy a memory ofthe mobile terminal, performance of the mobile terminal is degraded, andwhen the user expects to clean up these junk SMS messages, a cleanupprocess is cumbersome. Therefore, an embodiment of the presentdisclosure provides an SMS message processing method. According to themethod, different SMS messages are processed in different processingmanners such that not only a good communication environment is built forthe user, but also the performance of the mobile terminal is greatlyimproved. Referring to FIG. 1, a procedure of the method provided inthis embodiment includes the following steps.

101. Receive a new SMS message.

102. Extract identification information of the SMS message, where theidentification information is information about a number used to sendthe SMS message and/or a content keyword.

The identification information may be the information about the numberused to send the SMS message, including a service number, a mobilenumber, or the like, may be the content keyword included in the SMSmessage, may be the information about the number used to send the SMSmessage and the content keyword, or the like.

103. Determine a processing manner corresponding to the identificationinformation from a prestored correspondence between an identificationinformation group and a processing manner according to theidentification information, where each identification information groupincludes at least one piece of identification information.

In this embodiment, a processing manner for processing the received SMSmessage includes but is not limited to a first processing manner, asecond processing manner, a third processing manner, a fourth processingmanner, and the like.

The first processing manner is mainly for processing of SMS messages inwhich the user shows no interest. These SMS messages are usually falseinformation, illegal information, and the like, and the first processingmanner is used to instruct a mobile terminal to delete a received SMSmessage or save a received SMS message in a junk SMS message storagearea.

The second processing manner is mainly for processing of SMS messages inwhich the user shows relatively great interest. These SMS messages areusually advertisement information, service information, and the like,and the second processing manner is used to instruct the mobile terminalto save a received SMS message in a conventional SMS message storagearea and provide an information processing dialog box when a viewoperation on the received SMS message is detected, where multipleoptions such as a delete option and a save option are displayed in theinformation processing dialog box.

The third processing manner is mainly for processing of an SMS messagesent by a colleague, a friend, or the like of the user, and the thirdprocessing manner is used to instruct the mobile terminal to save areceived SMS message in the conventional SMS message storage area.

The fourth processing manner is mainly for processing of an SMS messagesent by a relative or the like of the user, and the fourth processingmanner is used to instruct the mobile terminal to save a received SMSmessage in a confidential SMS message storage area.

In addition, a corresponding processing manner may be preset for eachidentification information group in order to facilitate processing of areceived SMS message in subsequent steps. The first processing manner iscorresponding to a first number group and/or a first keyword group, thesecond processing manner is corresponding to a second number groupand/or a second keyword group, the third processing manner iscorresponding to a third number group and/or a third keyword group, andthe fourth processing manner is corresponding to a fourth number groupand/or a fourth keyword group.

104. Process the SMS message according to the determined processingmanner.

In this embodiment, corresponding processing may be performed on thereceived SMS message based on the determined processing manner.

According to the method provided in this embodiment of the presentdisclosure, when the SMS message is received, the identificationinformation of the SMS message is extracted such that SMS messages thathave different identification information are processed in differentprocessing manners, thereby optimizing an SMS message processing manner,preventing a junk SMS message from occupying storage space, andimproving performance of the mobile terminal.

In another embodiment of the present disclosure, before the determininga processing manner corresponding to the identification information froma prestored correspondence between an identification information groupand a processing manner according to the identification information, themethod further includes providing an SMS message setting page, wheremultiple processing manners are displayed on the SMS message settingpage; setting, according to a setting operation in the SMS messagesetting interface, a processing manner corresponding to each piece ofidentification information; grouping identification informationcorresponding to a same processing manner based on the processing mannercorresponding to each piece of identification information, to form anidentification information group; and storing the correspondence betweenan identification information group and a processing manner.

In another embodiment of the present disclosure, the processing the SMSmessage according to the determined processing manner includes if thedetermined processing manner is the first processing manner, deletingthe SMS message or saving the SMS message in the junk SMS messagestorage area according to the first processing manner; if the determinedprocessing manner is the second processing manner, according to thesecond processing manner, saving the SMS message in the conventional SMSmessage storage area, and when a view operation on the SMS message isdetected, providing the information processing dialog box, andprocessing the SMS message according to a selected operation in theinformation processing dialog box; if the determined processing manneris the third processing manner, saving the SMS message in theconventional SMS message storage area according to the third processingmanner; or if the determined processing manner is the fourth processingmanner, saving the SMS message in the confidential SMS message storagearea according to the fourth processing manner.

In another embodiment of the present disclosure, the processing the SMSmessage according to a selected operation in the information processingdialog box includes if it is detected that the delete option in theinformation processing dialog box is selected, deleting the SMS messageor saving the SMS message in the junk SMS message storage area; or if itis detected that the save option in the information processing dialogbox is selected, saving the SMS message, and when a view operation onthe SMS message is detected subsequently, skipping providing theinformation processing dialog box again.

All the foregoing optional technical solutions may be combined in anymanner to form an optional embodiment of the present disclosure, anddetails are not described herein.

An embodiment of the present disclosure provides an SMS messageprocessing method with reference to the embodiment shown in FIG. 1. Thata mobile terminal that has an SMS message receiving/transmittingfunction such as a mobile phone performs the method is used as anexample. Referring to FIG. 2, a procedure of the method provided in thisembodiment of the present disclosure includes the following steps.

201. A mobile terminal presets and stores a correspondence between anidentification information group and a processing manner.

In this embodiment, to perform classified processing on SMS messagesthat have different identification information, the mobile terminal hasdifferent storage areas, and the different storage areas may beclassified into a junk SMS message storage area, a conventional SMSmessage storage area, a confidential SMS message storage area, and thelike. Specific positions of the junk SMS message storage area, theconventional SMS message storage area, and the confidential SMS messagestorage area in the mobile terminal are not limited in this embodiment,provided that the junk SMS message storage area, the conventional SMSmessage storage area, and the confidential SMS message storage area canbe distinguished.

According to the method provided in this embodiment, the correspondencebetween an identification information group and a processing manner maybe set based on an important role of the identification information inorder to process a received SMS message pertinently such that animportant SMS message of a user can be effectively prevented from beingdeleted while quickly cleaning up a junk SMS message.

When setting the correspondence between an identification informationgroup and a processing manner, the mobile terminal may provide an SMSmessage setting page. Multiple processing manners are displayed on theSMS message setting page. The user sets, in the SMS message settinginterface, a corresponding processing manner for each piece ofidentification information according to a requirement of the user, andthe mobile terminal sets, by detecting a setting operation of the useron the setting page, the processing manner corresponding to each pieceof identification information. Generally, each processing manner iscorresponding to multiple pieces of identification information.Therefore, for ease of management, the mobile terminal groupsidentification information corresponding to a same processing mannerbased on the processing manner corresponding to each piece ofidentification information, to form an identification information group.In this case, there is also a correspondence between an identificationinformation group and a processing manner.

It should be noted that for different content of identificationinformation, a manner in which the mobile terminal sets thecorrespondence between an identification information group and aprocessing manner is also different. When identification information isinformation about a number used to send an SMS message, the mobileterminal may recommend number information stored in the mobile terminalto the user, and the user sets, on the SMS message setting page, acorresponding processing manner for each piece of recommended numberinformation. The number information stored in the mobile terminal may becontact number information stored in an address book, may be contactnumber information in a history communication record, or the like. Whenthe identification information is a content keyword included in an SMSmessage, the mobile terminal may extract a content keyword from an SMSmessage stored in the mobile terminal, and recommend the extractedcontent keyword to the user, and the user may further define a contentkeyword according to an information receiving requirement of the user,and then set, on the SMS message prompt page, corresponding processingmanners for the recommended content keyword and the defined contentkeyword. When the identification information is information about anumber used to send an SMS message and a content keyword, the mobileterminal recommends, to the user, number information stored in themobile terminal and a content keyword extracted from a stored SMSmessage, and the user may further define a content keyword according toan information receiving requirement of the user, and then set, on theSMS message setting page, corresponding processing manners for therecommended number information, the recommended content keyword, and thedefined content keyword.

It should be noted that the correspondence between an identificationinformation group and a processing manner is set by the user accordingto a requirement of the user in the foregoing. However, in someapproaches, the mobile terminal may further perform settingrecommendation for the user. For example, the mobile terminal promptsthe user to set SMS messages corresponding to specific pieces of numberinformation to SMS messages that need to be stored, to set SMS messagescorresponding to specific numbers to SMS messages that need to bedeleted, or the like; or prompts the user to set SMS messages thatinclude specific content keywords to SMS messages that need to bestored, to set SMS messages that include specific content keywords toSMS messages that need to be deleted, or the like.

After the setting operation, the following correspondence exists betweena processing manner and an identification information group.

A first processing manner is corresponding to a first identificationinformation group. The first identification information group may be afirst number group, a first keyword group, or a first number group and afirst keyword group. That is, the first processing manner may becorresponding to the first number group, the first processing manner maybe corresponding to the first keyword group, or the first processingmanner may be corresponding to the first number group and the firstkeyword group.

A second processing manner is corresponding to a second identificationinformation group. The second identification information group may be asecond number group, a second keyword group, or a second number groupand a second keyword group. That is, the second processing manner may becorresponding to the second number group, the second processing mannermay be corresponding to the second keyword group, or the secondprocessing manner may be corresponding to the second number group andthe second keyword group.

A third processing manner is corresponding to a third identificationinformation group. The third identification information group may be athird number group, a third keyword group, or a third number group and athird keyword group. That is, the third processing manner may becorresponding to the third number group, the third processing manner maybe corresponding to the third keyword group, or the third processingmanner may be corresponding to the third number group and the thirdkeyword group.

A fourth processing manner is corresponding to a fourth identificationinformation group. The fourth identification information group may be afourth number group, a fourth keyword group, or a fourth number groupand a fourth keyword group. That is, the fourth processing manner may becorresponding to the fourth number group, the fourth processing mannermay be corresponding to the fourth keyword group, or the fourthprocessing manner may be corresponding to the fourth number group andthe fourth keyword group.

In the method provided in this embodiment, the specified correspondencebetween an identification information group and a processing manner isfurther stored after the correspondence between an identificationinformation group and a processing manner is preset in order tofacilitate subsequent application. During storage, the presetcorrespondence between identification information and a processingmanner may be stored in a local storage unit, such as a memory or aflash memory. Certainly, another storage manner may be used, and is notdescribed herein.

It should be noted that there is no need to preset the correspondencebetween an identification information group and a processing manner eachtime the SMS message processing method is implemented. Thecorrespondence between an identification information group and aprocessing manner may be preset when the SMS message processing methodis first implemented, and the specified correspondence between anidentification information group and a processing manner may be directlyused when the SMS message processing method is implemented subsequently.Certainly, when a preset identification information group and processingmanner need to be updated, for example, when an operation such asaddition, deletion, or changing is performed on identificationinformation in the identification information group corresponding to thepreset processing manner, the step of setting the correspondence betweenan identification information group and a processing manner may beperformed again, and a quantity of times of performing the step is notlimited in this embodiment.

202. The mobile terminal receives a new SMS message.

In the communications field, when a first mobile terminal needs toestablish a session with a second mobile terminal by using an SMSmessage, the first mobile terminal sends a packet that carries numberinformation to a server, and after receiving the packet that carries thenumber information and that is sent by the first mobile terminal, theserver sends, to the second mobile terminal, the packet that carries thenumber information and that is sent by the first mobile terminal, toenable the first mobile terminal to establish the session with thesecond mobile terminal. The packet is a new SMS message received by thesecond mobile terminal. The first mobile terminal is a sender of the SMSmessage, and the second mobile terminal is a recipient of the SMSmessage, that is, the mobile terminal that performs the SMS messageprocessing method in this embodiment.

203. The mobile terminal extracts identification information of the SMSmessage.

Because the SMS message processing manner provided in this embodiment ismainly for processing of a received new SMS message, each time a new SMSmessage is received, the mobile terminal may directly extractidentification information of the new SMS message, and then process thenew SMS message according to the extracted identification information inorder to avoid missing any SMS message that needs to be processed.However, if there is a large quantity of received new SMS messages, anda processor unit of the mobile terminal has no sufficient resources toprocess each received new SMS message, the mobile terminal may save thereceived new SMS message in a temporary storage medium such as a cache;and when the processor unit of the mobile terminal has sufficientresources to process the received new SMS message, the mobile terminalmay read the new SMS message from the temporary storage medium, extractidentification information from the new SMS message, and then processthe new SMS message according to the extracted identificationinformation.

Because the SMS message received by the mobile terminal is usually acompressed package of the SMS message, and coding data with a specificformat may be obtained after the compressed package of the SMS messageis decoded, the mobile terminal may extract, according to the decodeddata from data that indicates a number used to send the SMS message, thenumber used to send the SMS message, and filter, by using a contentkeyword included in the preset identification information group as afiltering condition, data that indicates content of the SMS message. Ifthe data that indicates the content of the SMS message includes thecontent keyword in the identification information group, the mobileterminal extracts the content keyword from the data that indicates thecontent of the SMS message; or if the data that indicates the content ofthe SMS message does not include the content keyword in theidentification information, the mobile terminal does not extract anyinformation from the data that indicates the content of the SMS message.

204. The mobile terminal determines a processing manner corresponding tothe identification information from the prestored correspondence betweenan identification information group and a processing manner according tothe identification information.

After extracting the identification information from the received newSMS message, the mobile terminal may determine, based on the prestoredcorrespondence between identification information and a processingmanner, the processing manner corresponding to the identificationinformation.

In an embodiment of the present disclosure, when the identificationinformation extracted from the SMS message is first identificationinformation, that is, the number used to send the SMS message belongs tothe first number group, or the SMS message includes a content keyword inthe first keyword group, or the number used to send the SMS messagebelongs to the first number group and the SMS message includes a contentkeyword in the first keyword group, the processing manner for the SMSmessage may be determined as the first processing manner.

In an embodiment of the present disclosure, when the identificationinformation extracted from the SMS message is second identificationinformation, that is, the number used to send the SMS message belongs tothe second number group, or the SMS message includes a content keywordin the second keyword group, or the number used to send the SMS messagebelongs to the second number group and the SMS message includes acontent keyword in the second keyword group, the processing manner forthe SMS message may be determined as the second processing manner.

In an embodiment of the present disclosure, when the identificationinformation extracted from the SMS message is third identificationinformation, that is, the number used to send the SMS message belongs tothe third number group, or the SMS message includes a content keyword inthe third keyword group, or the number used to send the SMS messagebelongs to the third number group and the SMS message includes a contentkeyword in the third keyword group, the processing manner for the SMSmessage may be determined as the third processing manner.

In an embodiment of the present disclosure, when the identificationinformation extracted from the SMS message is fourth identificationinformation, that is, the number used to send the SMS message belongs tothe fourth number group, or the SMS message includes a content keywordin the fourth keyword group, or the number used to send the SMS messagebelongs to the fourth number group and the SMS message includes acontent keyword in the fourth keyword group, the processing manner forthe SMS message may be determined as the fourth processing manner.

It should be noted that during determining of the processing mannercorresponding to the identification information, any one of the threemanners of matching by using a number used to send the SMS message, acontent keyword, and the number used to send the SMS message and thecontent keyword is used as an example for description. However, in someapproaches, because matching by using the number used to send the SMSmessage is faster, the number information extracted from the SMS messagemay be first matched with number information corresponding to eachprocessing manner during determining of the processing mannercorresponding to the identification information according to theextracted identification information. When the extracted numberinformation belongs to number information corresponding to anyprocessing manner, the processing manner is determined as the processingmanner for the SMS message; or when the extracted number informationdoes not belong to number information corresponding to any processingmanner, the content keyword extracted from the SMS message is matchedwith a content keyword corresponding to each processing manner, and whenthe content keyword extracted from the SMS message belongs to a contentkeyword corresponding to any processing manner, the processing manner isdetermined as the processing manner for the SMS message.

205. The mobile terminal processes the SMS message according to thedetermined processing manner.

That the mobile terminal processes the SMS message based on thedetermined processing manner includes but is not limited to thefollowing cases.

First case, the determined processing manner is the first processingmanner.

When the processing manner is the first processing manner, it indicatesthat the received SMS message is an SMS message in which the user showsno interest. The mobile terminal may directly delete the SMS message inorder to prevent the SMS message from occupying storage space of themobile terminal. Certainly, the mobile terminal may save the SMS messagein the junk SMS message storage area in order to facilitate subsequentviewing by the user.

Second case, the determined processing manner is the second processingmanner.

When the determined processing manner is the second processing manner,it indicates that the received SMS message is an SMS message in whichthe user shows relatively great interest. In this case, the mobileterminal stores the SMS message in the conventional SMS message storagearea. Then, when detecting a view operation performed by the user on theSMS message, the mobile terminal provides an information processingdialog box, the user may select different options in the informationprocessing dialog box according to a degree of interest in contentincluded in the SMS message, and the mobile terminal processes the SMSmessage by detecting a selected operation of the user in the informationprocessing dialog box. If the mobile terminal detects that a deleteoption in the information processing dialog box is selected, the mobileterminal generates a deletion instruction, and triggered by the deletioninstruction, the mobile terminal deletes the SMS message from theconventional SMS message storage area, or stores the SMS message in thejunk SMS message storage area; or if the mobile terminal detects that asave option in the information processing dialog box is selected, themobile terminal generates a save instruction, and triggered by the saveinstruction, the mobile terminal stores the SMS message, and if themobile terminal detects a view operation on the SMS messagesubsequently, the mobile terminal no longer provides the informationprocessing dialog box.

For ease of understanding, the following uses FIG. 3 as an example todescribe a processing process described in the second case.

Four SMS messages are displayed on a display screen of (a) in FIG. 3,and are respectively a first SMS message, a second SMS message, a thirdSMS message, and a fourth SMS message. Processing manners correspondingto the first SMS message, the second SMS message, and the third SMSmessage are each the first manner, and a processing manner correspondingto the fourth SMS message is the second processing manner. Whendetecting a view operation performed by the user on the fourth SMSmessage, as shown in (b) in FIG. 3, the mobile terminal displays, on thedisplay screen, content of the fourth SMS message, and the mobileterminal provides an information processing dialog box. If the mobileterminal detects that a delete option in the information processingdialog box is selected, the mobile terminal generates a deletioninstruction, and triggered by the deletion instruction, the mobileterminal deletes the fourth SMS message from the conventional SMSmessage storage area, or stores the fourth SMS message in the junk SMSmessage storage area; or if the mobile terminal detects that a saveoption in the information processing dialog box is selected, the mobileterminal generates a save instruction, and triggered by the saveinstruction, the mobile terminal stores the fourth SMS message, and whensubsequently detecting a view operation performed by the user on thefourth SMS message, the mobile terminal no longer provides theinformation processing dialog box.

It should be noted that for the first case and the second case,according to the method provided in this embodiment, all SMS messages inthe junk SMS message storage area are deleted after the received SMSmessage is stored in the junk SMS message storage area in order toimprove performance of the mobile terminal.

In an embodiment of the present disclosure, the mobile terminal presetsa processing period, and the processing period is set by the user on theSMS message setting page, and may be one day, two days, three days, orthe like. Then, the mobile terminal deletes, based on the specifiedprocessing period, all SMS messages in the junk SMS message storage areaat intervals of the processing period.

In another embodiment of the present disclosure, the mobile terminal mayfurther preset a threshold, for example, 30% or 20%. When remainingstorage space of the junk SMS message storage area is less than thethreshold, the mobile terminal may delete all SMS messages in the junkSMS message storage space.

Third case, the determined processing manner is the third processingmanner.

When the determined processing manner is the third processing manner, itindicates that the received SMS message is an SMS message sent by acolleague, a friend, or the like of the user. In this case, the mobileterminal directly stores the SMS message in the conventional SMS messagestorage area.

Fourth case, the determined processing manner is the fourth processingmanner.

When the determined processing manner is the fourth processing manner,it indicates that the received SMS message is an important SMS messagesent by a relative or the like of the user. The mobile terminal maystore the important SMS message in the confidential SMS message storagearea in order to prevent the important SMS message from being deleted.

According to the method provided in this embodiment of the presentdisclosure, when the SMS message is received, the identificationinformation of the SMS message is extracted such that SMS messages thathave different identification information are processed in differentprocessing manners, thereby optimizing an SMS message processing manner,preventing a junk SMS message from occupying storage space, andimproving the performance of the mobile terminal.

An embodiment of the present disclosure provides an SMS messageprocessing apparatus. Referring to FIG. 4, the apparatus includes areceiving module 401 configured to receive a new SMS message; anidentification information extraction module 402 configured to extractidentification information of the SMS message, where the identificationinformation is information about a number used to send the SMS messageand/or a content keyword; a processing manner determining module 403configured to determine a processing manner corresponding to theidentification information from a prestored correspondence between anidentification information group and a processing manner according tothe identification information, where each identification informationgroup includes at least one piece of identification information; and anSMS message processing module 404 configured to process the SMS messageaccording to the determined processing manner.

Referring to FIG. 5, the apparatus further includes a setting pageproviding module 405 configured to provide an SMS message setting page,where multiple processing manners are displayed on the SMS messagesetting page; a setting module 406 configured to set, according to asetting operation in the SMS message setting interface, a processingmanner corresponding to each piece of identification information; anidentification information group forming module 407 configured to groupidentification information corresponding to a same processing mannerbased on the processing manner corresponding to each piece ofidentification information, to form an identification information group;and a storage module 408 configured to store the correspondence betweenan identification information group and a processing manner.

In another embodiment of the present disclosure, the processing mannerincludes a first processing manner, a second processing manner, a thirdprocessing manner, and a fourth processing manner.

The first processing manner is corresponding to a first number groupand/or a first keyword group, and the first processing manner is todelete a received SMS message or save a received SMS message in a junkSMS message storage area; the second processing manner is correspondingto a second number group and/or a second keyword group, and the secondprocessing manner is to save a received SMS message in a conventionalSMS message storage area and provide an information processing dialogbox when a view operation on the received SMS message is detected, wherea delete option and a save option are displayed in the informationprocessing dialog box; the third processing manner is corresponding to athird number group and/or a third keyword group, and the thirdprocessing manner is to save a received SMS message in the conventionalSMS message storage area; and the fourth processing manner iscorresponding to a fourth number group and/or a fourth keyword group,and the fourth processing manner is to save a received SMS message in aconfidential SMS message storage area.

In another embodiment of the present disclosure, the SMS messageprocessing module 404 is configured to when the determined processingmanner is the first processing manner, delete the SMS message or savethe SMS message in the junk SMS message storage area according to thefirst processing manner; the SMS message processing module 404 isconfigured to when the determined processing manner is the secondprocessing manner, according to the second processing manner, save theSMS message in the conventional SMS message storage area, and when aview operation on the SMS message is detected, provide the informationprocessing dialog box, and process the SMS message according to aselected operation in the information processing dialog box; the SMSmessage processing module 404 is configured to when the determinedprocessing manner is the third processing manner, save the SMS messagein the conventional SMS message storage area according to the thirdprocessing manner; or the SMS message processing module 404 isconfigured to when the determined processing manner is the fourthprocessing manner, save the SMS message in the confidential SMS messagestorage area according to the fourth processing manner.

In another embodiment of the present disclosure, the SMS messageprocessing module 404 is configured to when it is detected that thedelete option in the information processing dialog box is selected,delete the SMS message or save the SMS message in the junk SMS messagestorage area; or the SMS message processing module 404 is configured towhen it is detected that the save option in the information processingdialog box is selected, save the SMS message, and when a view operationon the SMS message is detected subsequently, skip providing theinformation processing dialog box again.

In conclusion, according to the apparatus provided in this embodiment ofthe present disclosure, when the SMS message is received, theidentification information of the SMS message is extracted such that SMSmessages that have different identification information are processed indifferent processing manners, thereby optimizing an SMS messageprocessing manner, preventing a junk SMS message from occupying storagespace, and improving performance of a mobile terminal.

FIG. 6 shows an electronic device according to a specific implementationof the present disclosure. The electronic device includes componentssuch as an input unit 601, a processor unit 602, an output unit 603, acommunications unit 604, a storage unit 605, and a peripheral unit 606.These components perform communication by using one or more buses. Aperson skilled in the art may understand that a structure of theelectronic device shown in the figure constitutes no limitation on thepresent disclosure. The structure may be a bus structure, or may be astar structure, or may include more or fewer parts than those shown inthe figure, or a combination of some parts, or different partarrangements. In the implementation of the present disclosure, theelectronic device may be any mobile or portable electronic device,including but not limited to a mobile phone, a mobile computer, a tabletcomputer, a personal digital assistant (PDA), a media player, a smarttelevision, a combination of two or more thereof, and the like.

The input unit 601 is configured to implement interaction between a userand the electronic device and/or input information to the electronicdevice. For example, the input unit 601 may receive digit or characterinformation input by the user in order to generate signal input relatedto user setting or function control. In a specific implementation of thepresent disclosure, the input unit may be a touch panel, or may beanother human-machine interaction interface, such as a substantive inputkey or a microphone, or may be another external information obtainingapparatus, for example, a camera. The touch panel, also referred to as atouchscreen or a touchscreen, may collect an operation action that theuser touches or approaches on the touch panel, for example, an operationaction performed by the user on the touch panel or at a position closeto the touch panel by using any proper object or accessory, such as afinger or a stylus, and drive a corresponding connection apparatusaccording to a preset program. Optionally, the touch panel may includetwo parts, a touch detection apparatus and a touch controller. The touchdetection apparatus detects a touch operation of the user, converts thedetected touch operation into an electrical signal, and sends theelectrical signal to the touch controller. The touch controller receivesthe electrical signal from the touch detection apparatus, and convertsthe electrical signal into contact coordinates, and then sends thecontact coordinates to the processor unit. The touch controller mayfurther receive and execute a command sent by the processor unit. Inaddition, the touch panel may be implemented in multiple types, such asa resistive type, a capacitive type, infrared, and a surface acousticwave. In another implementation of the present disclosure, thesubstantive input key used by the input unit 601 may include but is notlimited to one or more of a physical keyboard, a function key (such as avolume control key or on/off keying), a trackball, a mouse, a joystick,or the like. The input unit 601 in a microphone form may collect a voiceinput by the user or an environment, and convert the voice into acommand that is in an electrical signal form and that may be executed bythe processor unit.

In some other implementations of the present disclosure, the input unit601 may further be various types of sensing devices, for example, a halldevice configured to detect a physical quantity of the electronicdevice, such as force, torque, pressure, stress, a position, adisplacement, a speed, acceleration, an angle, an angular velocity, arotational number, a rotational speed, and a time at which a workingstatus changes, and convert the physical quantity into an electricquantity for detection and control. Some other sensing devices mayfurther include a gravity sensor, a tri-axis accelerometer, a gyroscope,and the like.

The processor unit 602 is a control center of the electronic device, isconnected to all parts of an entire electronic device by using variousinterfaces and lines, and executes various functions of the electronicdevice and/or processes data by running or executing a software programand/or a module stored in the storage unit 605 and invoking data storedin the storage unit 602. The processor unit 602 is configured to invoke,by using a bus, program code stored in the storage unit 605in order toperform the following operations, receiving a new SMS message;extracting identification information of the SMS message, where theidentification information is information about a number used to sendthe SMS message and/or a content keyword; determining a processingmanner corresponding to the identification information from a prestoredcorrespondence between an identification information group and aprocessing manner according to the identification information, whereeach identification information group includes at least one piece ofidentification information; and processing the SMS message according tothe determined processing manner.

In another embodiment of the present disclosure, before the operation ofdetermining a processing manner corresponding to the identificationinformation from a prestored correspondence between an identificationinformation group and a processing manner according to theidentification information, the processor unit 602 is further configuredto perform the following operations, providing an SMS message settingpage, where multiple processing manners are displayed on the SMS messagesetting page; setting, according to a setting operation in the SMSmessage setting interface, a processing manner corresponding to eachpiece of identification information; grouping identification informationcorresponding to a same processing manner based on the processing mannercorresponding to each piece of identification information, to form anidentification information group; and storing the correspondence betweenan identification information group and a processing manner.

In another embodiment of the present disclosure, the processing mannerincludes a first processing manner, a second processing manner, a thirdprocessing manner, and a fourth processing manner.

The first processing manner is corresponding to a first number groupand/or a first keyword group, and the first processing manner is todelete a received SMS message or save a received SMS message in a junkSMS message storage area; the second processing manner is correspondingto a second number group and/or a second keyword group, and the secondprocessing manner is to save a received SMS message in a conventionalSMS message storage area and provide an information processing dialogbox when a view operation on the received SMS message is detected, wherea delete option and a save option are displayed in the informationprocessing dialog box; the third processing manner is corresponding to athird number group and/or a third keyword group, and the thirdprocessing manner is to save a received SMS message in the conventionalSMS message storage area; and the fourth processing manner iscorresponding to a fourth number group and/or a fourth keyword group,and the fourth processing manner is to save a received SMS message in aconfidential SMS message storage area.

In another embodiment of the present disclosure, the operation in whichthe processor unit 602 processes the SMS message according to thedetermined processing manner includes when the determined processingmanner is the first processing manner, deleting the SMS message orsaving the SMS message in the junk SMS message storage area according tothe first processing manner; when the determined processing manner isthe second processing manner, according to the second processing manner,saving the SMS message in the conventional SMS message storage area, andwhen a view operation on the SMS message is detected, providing theinformation processing dialog box, and processing the SMS messageaccording to a selected operation in the information processing dialogbox; when the determined processing manner is the third processingmanner, saving the SMS message in the conventional SMS message storagearea according to the third processing manner; or when the determinedprocessing manner is the fourth processing manner, saving the SMSmessage in the confidential SMS message storage area according to thefourth processing manner.

In another embodiment of the present disclosure, the operation in whichthe processor unit 602 processes the SMS message according to a selectedoperation in the information processing dialog box includes when it isdetected that the delete option in the information processing dialog boxis selected, deleting the SMS message or saving the SMS message in thejunk SMS message storage area; or when it is detected that the saveoption in the information processing dialog box is selected, saving theSMS message, and when a view operation on the SMS message is detectedsubsequently, skipping providing the information processing dialog boxagain.

The processor unit 602 may include an integrated circuit (IC), forexample, the processor unit 602 may include a single encapsulated IC, ormay include multiple encapsulated ICs that have a same function ordifferent functions and that are connected. For example, the processorunit 602 may include only a central processing unit (CPU), and may be acombination of a graphical processing unit (GPU), a digital signalprocessor (DSP), and a control chip (for example, a baseband chip) inthe communications unit 604. In an implementation of the presentdisclosure, the CPU may be a single operation core, or may includemultiple operation cores.

The communications unit 604 is configured to establish a communicationchannel such that the electronic device is connected to a remote serverby using the communication channel, and downloads media data from theremote server. The communications unit 606 may include a communicationsmodule, such as a wireless local area network (WLAN) module, a Bluetoothmodule, and a baseband (Base Band) module, and a radio frequency (RF)circuit corresponding to the communications module, and is configured toperform wireless local area network communication, Bluetoothcommunication, infrared communication and/or cellular communicationssystem communication, such as Wideband Code Division Multiple Access(WCDMA) and/or High Speed Download Packet Access (HSDPA). Thecommunications module is configured to control communication between allcomponents in the electronic device, and may support direct memoryaccess.

In different implementations of the present disclosure, variouscommunications modules in the communications unit 604 usually appear ina form of an IC chip, and may be selectively combined instead ofincluding all communications modules and corresponding antenna groups.For example, the communications unit 604 may include only a basebandchip, a RF chip, and a corresponding antenna in order to provide acommunication function in a cellular communications system. Theelectronic device may be connected to a cellular network or the Internetby using a wireless communication connection established by thecommunications unit, such as wireless local area network access or WCDMAaccess. In some optional implementations of the present disclosure, thecommunications module in the communications unit 604, for example, thebaseband module may be integrated into the processor unit 602. In thisembodiment of the present disclosure, the communications unit 604 may beconfigured to receive the new SMS message.

The RF circuit is configured to receive and send a signal in aninformation receiving/transmitting process or a call process. Forexample, after receiving downlink information of a base station, the RFcircuit sends the downlink information to the processor unit forprocessing; and in addition, sends designed uplink data to the basestation. Generally, the RF circuit includes a well-known circuitconfigured to execute these functions, including but not limited to anantenna system, a RF transceiver, one or more amplifiers, a tuner, oneor more oscillators, a digital signal processor, a codec chip set, asubscriber identity module (SIM) card, a memory, and the like. Inaddition, the RF circuit may communicate with a network and anotherdevice by means of radio communications. The radio communications mayuse any communications standard or protocol, including but not limitedto global system of mobile (GSM) communication, general packet radioservice (GPRS), code division multiple access (CDMA) wideband codedivision multiple access (WCDMA), a high speed uplink packet access(HSUPA) technology, long term evolution (LTE), an email, an SMS, and thelike.

The output unit 603 includes but is not limited to an image output unitand an audio output unit. The image output unit is configured to outputa text, a picture, and/or a video. The image output unit may include adisplay panel, for example, a display panel configured in a form of aliquid crystal display (LCD), an organic light-emitting diode (OLED), afield emission display (FED), and the like; or the image output unit mayinclude a reflective display, such as an electrophoretic display or adisplay that uses an interferometric modulation of light technology. Theimage output unit may include a single display or multiple displays withdifferent sizes. In a specific implementation of the present disclosure,the touch panel used by the input unit 601 may also be used as a displaypanel of the output unit. For example, after detecting a gestureoperation of touching or approaching on the touch panel, the touch panelsends the gesture operation to the processor unit 602 to determine atype of a touch event, and then the processor unit providescorresponding visual output on the display panel according to the typeof the touch event. In FIG. 6, the input unit 601 and the output unit603 serve as two separate parts to implement input and output functionsof the electronic device, but in some embodiments, the touch panel andthe display panel may be integrated to implement the input and outputfunctions of the electronic device. For example, the image output unitmay display various graphical user interfaces (GUI) as virtual controlcomponents, including but not limited to a window, a scroll bar, anicon, and a scrapbook such that the user performs an operation in atouch manner.

In a specific implementation of the present disclosure, the image outputunit includes a filter and an amplifier that are configured to filterand amplify a video output by the processor unit. The audio output unitincludes a digital-to-analog converter configured to convert an audiosignal output by the processor unit from a digital format to an analogformat.

The storage unit 605 may be configured to store a software program and amodule, and the processor unit 602 executes various functionapplications of the electronic device and implements data processing, byrunning the software program and the module stored in the storage unit605. The storage unit 605 mainly includes a program storage area and adata storage area. The program storage area may store an operatingsystem, an application program required by at least one function, suchas an audio playing program or an image playing program; and the datastorage area may store data (such as audio data or a phone book) createdaccording to use of the electronic device, and the like. In a specificimplementation of the present disclosure, the storage unit 605 mayinclude a volatile memory, such as a nonvolatile random access memory(NVRAM), a phase change random access memory (PRAM), or amagnetoresistive random access memory (MRAM), or may include anonvolatile memory, such as at least one magnetic disk storage device,an electrically erasable programmable read-only memory (EEPROM), or aflash device, such as a NOR flash memory or a NAND flash memory. Thenonvolatile memory stores an operating system and an application programthat are executed by the processor unit. The processor unit 602 loads arunning program and data from the nonvolatile memory to a memory, andstores digital content in a large number of storage apparatuses. Theoperating system includes various components and/or drivers that areconfigured to control and manage a regular system task, such as memorymanagement, storage device control, or power management and thatfacilitate communication between various types of software and hardware.In the implementation of the present disclosure, the operating systemmay be an Android system, an iOS system, a Windows operating system, anembedded operating system such as Vxworks, or the like.

The application program includes any application installed on theelectronic device, including but not limited to a browser, an email, aninstant message service, text processing, keyboard virtualization, awidget, encryption, digital copyright management, speech recognition,speech replication, positioning (for example, a function provided by aGlobal Positioning System (GPS)), music playing, and the like.

The electronic device further includes a power supply 607. The powersupply 607 is configured to supply power to different parts of theelectronic device to maintain running of the parts. Generally, the powersupply 607 may be a built-in battery, such as a common lithium-ionbattery or an NiMH battery, or may be an external power supply thatdirectly supplies power to the electronic device, for example, an ACadapter. In some implementations of the present disclosure, the powersupply 607 may be further defined in a wider scope. For example, thepower supply 607 may further include a power management system, acharging system, a power failure detection circuit, a power converter orinverter, a power status indicator (for example, a light emittingdiode), and any other components related to electric energy generation,management, and distribution of the electronic device.

According to the electronic device provided in this embodiment of thepresent disclosure, when the SMS message is received, the identificationinformation of the SMS message is extracted such that SMS messages thathave different identification information are processed in differentprocessing manners, thereby optimizing an SMS message processing manner,preventing a junk SMS message from occupying storage space, andimproving performance of the mobile terminal.

It should be noted that when the SMS message processing apparatus andthe electronic device that are provided in the foregoing embodimentsprocess the SMS message, division of the foregoing function modules ismerely used as an example for illustration. In some approaches, theforegoing functions can be allocated to different function modules andimplemented according to a requirement, that is, inner structures of theSMS message processing apparatus and the electronic device are dividedinto different function modules to implement all or part of thefunctions described above. In addition, the SMS message processingmethod, the SMS message processing apparatus, and the electronic devicethat are provided in the foregoing embodiments pertain to a sameconcept. For a specific implementation process, refer to the methodembodiments, and details are not described herein.

A person of ordinary skill in the art may understand that all or some ofthe steps of the embodiments may be implemented by hardware or a programinstructing related hardware. The program may be stored in acomputer-readable storage medium. The storage medium may include aread-only memory, a magnetic disk, or an optical disc.

The foregoing descriptions are merely example embodiments of the presentdisclosure, but are not intended to limit the present disclosure. Anymodification, equivalent replacement, and improvement made withoutdeparting from the spirit and principle of the present disclosure shallfall within the protection scope of the present disclosure.

1. (canceled)
 2. An electronic device, comprising: a memory configuredto store instructions; and a processor coupled to the memory andconfigured to execute the instructions to cause the electronic deviceto: set, responsive to a first setting operation, a first identificationinformation to correspond to a first processing manner of either a)deleting a received SMS message, or b) saving a received SMS message ina junk SMS message storage area; set, responsive to a second settingoperation, a second identification information to correspond to a secondprocessing manner of saving a received SMS message in a conventional SMSmessage storage area, and displaying both a content of the received SMSmessage and a delete option when a view operation on the received SMSmessage is detected; set, responsive to a third setting operation, athird identification information to correspond to a third processingmanner of saving a received SMS message in the conventional SMS messagestorage area; and set, responsive to a fourth setting operation, afourth identification information to correspond to a fourth processingmanner of saving a received SMS message in a confidential SMS messagestorage area.
 3. The electronic device of claim 2, wherein the deleteoption is displayed in an information processing dialog box.
 4. Theelectronic device of claim 3, wherein the information processing dialogbox comprises multiple options.
 5. The electronic device of claim 3,wherein the information processing dialog box comprises a save option.6. The electronic device of claim 2, wherein the first identificationinformation comprises information about a number used to send a SMSmessage, a content keyword, or both information about a number used tosend a SMS message and a content keyword, wherein the secondidentification information comprises information about a number used tosend a SMS message, a content keyword, or both information about anumber used to send a SMS message and a content keyword, wherein thethird identification information comprises information about a numberused to send a SMS message, a content keyword, or both information abouta number used to send a SMS message and a content keyword, and whereinthe fourth identification information comprises information about anumber used to send a SMS message, a content keyword, or bothinformation about a number used to send a SMS message and a contentkeyword.
 7. The electronic device of claim 2, wherein the firstprocessing manner, the second processing manner, the third processingmanner and the fourth processing manner are different processingmanners.
 8. The electronic device of claim 2, wherein the junk SMSmessage storage area, the conventional SMS message storage area, and theconfidential SMS message storage area are different storage areas. 9.The electronic device of claim 2, wherein the instructions, whenexecuted by the processor, further cause the electronic device to:provide an SMS message setting page, wherein one or more of the firstprocessing manner, the second processing manner, the third processingmanner, and the fourth processing manner are displayed on the SMSmessage setting page; and set, according to a setting operation in theSMS message setting page, a processing manner corresponding to each ofthe first identification information, the second identificationinformation, the third identification information, and the fourthidentification information.
 10. The electronic device of claim 2,wherein before receiving the first setting operation, the second settingoperation, the third setting operation, or the fourth setting operation,the instructions, when executed by the processor, further cause theelectronic device to recommend number information stored in theelectronic device to a user when identification information of areceived SMS message is information about a number used to send the SMSmessage, wherein the recommended number information contains contactnumber information stored in an address book and contact numberinformation in a history communication record.
 11. The electronic deviceof claim 2, wherein the instructions, when executed by the processor,further cause the electronic device to: receive a SMS message; processthe received SMS message according to the first processing manner if adetermined identification information for the received SMS message isthe first identification information; process the received SMS messageaccording to the second processing manner if the determinedidentification information for the received SMS message is the secondidentification information; process the received SMS message accordingto the third processing manner if the determined identificationinformation for the received SMS message is the third identificationinformation; or process the received SMS message according to the fourthprocessing manner if the determined identification information for thereceived SMS message is the fourth identification information.
 12. Theelectronic device of claim 11, wherein the second processing mannerfurther comprises deleting the SMS message or saving the SMS message inthe junk SMS message storage area if it is detected that the deleteoption is selected.
 13. The electronic device of claim 11, wherein thesecond processing manner further comprises: saving the SMS message if itis detected that a save option in an information processing dialog boxis selected; and skipping providing the information processing dialogbox again when a view operation on the SMS message is detectedsubsequently.
 14. The electronic device of claim 11, wherein theinstructions, when executed by the processor, further cause theelectronic device to: determine the processing manner is the secondprocessing manner after receiving the SMS message; display a pluralityof SMS message items, wherein one of the plurality of SMS message itemscorresponds to the received SMS message; and display a content of thereceived SMS message and the delete option in response to a viewoperation of one of the plurality of SMS message items.
 15. Theelectronic device of claim 2, wherein the first identificationinformation comprises a first number, the third identificationinformation comprises a first content keyword, and the instructions,when executed by the processor, further cause the electronic device to:receive a first SMS message from the first number; process the first SMSmessage according to the first processing manner responsive to receivingthe first SMS message; receive a second SMS message from the firstnumber and including the first content keyword; and process the secondSMS message according to the third processing manner responsive toreceiving the second SMS message.
 16. The electronic device of claim 15,wherein the instructions, when executed by the processor, further causethe electronic device to: receive a third SMS message from a secondnumber and including the first content keyword, wherein the first numberis different than the second number; and process the third SMS messageaccording to the third processing manner responsive to receiving thethird SMS message.
 17. The electronic device of claim 15, wherein theinstructions, when executed by the processor, further cause theelectronic device to: set, responsive to a fifth setting operation, afifth identification information to correspond to the first processingmanner, wherein the fifth identification information comprises a secondcontent keyword; and group the first number and the second contentkeyword into a first identification information group, wherein the firstidentification information group corresponds to the first processingmanner.
 18. The electronic device of claim 17, wherein the instructions,when executed by the processor, further cause the electronic device to:set, responsive to a sixth setting operation, a sixth identificationinformation to correspond to the third processing manner, wherein thesixth identification information comprises a third content keyword,wherein the third content keyword is different than the first contentkeyword, and wherein the third content keyword is different than thesecond content keyword; and group the first content keyword and thirdcontent keyword into a second identification information group, whereinthe second identification information group corresponds to the thirdprocessing manner.
 19. The electronic device of claim 16, wherein theinstructions, when executed by the processor, further cause theelectronic device to: set, responsive to a seventh setting operation, aseventh identification information to correspond to the first processingmanner, wherein the seventh identification information comprises a thirdnumber, wherein the third number is different than the first number, andwherein the third number is different than the second number; and groupthe first number and third number into a third identificationinformation group, wherein the third identification information groupcorresponds to the first processing manner.
 20. A computer programproduct comprising instructions for storage on a non-transitorycomputer-readable medium that, when executed by a processor, cause theprocessor to be configured to: set, responsive to a first settingoperation, a first identification information to correspond to a firstprocessing manner of either a) deleting a received SMS message, orb)saving a received SMS message in a junk SMS message storage area; set,responsive to a second setting operation, a second identificationinformation to correspond to a second processing manner of saving areceived SMS message in a conventional SMS message storage area, anddisplaying both a content of the received SMS message and a deleteoption when a view operation on the received SMS message is detected;set, responsive to a third setting operation, a third identificationinformation to correspond to a third processing manner of saving areceived SMS message in the conventional SMS message storage area; andset, responsive to a fourth setting operation, a fourth identificationinformation to correspond to a fourth processing manner of saving areceived SMS message in a confidential SMS message storage area.
 21. Thecomputer program product of claim 20, wherein the delete option isdisplayed in an information processing dialog box.